<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<head>
<title>课程反馈</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css" />
<link href="css/memenu.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/memenu.js"></script>
<script>
	$(document).ready(function() {
		$(".memenu").memenu();
	});
</script>
<script type="application/x-javascript">
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 
</script>
<style type="text/css">
body {
	background-image: url(image/ba2.jpg);
}

h1 {
	color: #163758;
}

.btn-toright button {
	margin-right: 20%;
}

#pannel-bodytopr {
	float: right;

	/*列表*/
}

.Toright {
	float: right;
	padding-right: 20px;
}

.addFeedbackH {
	height: 660px;
}
/*添加的---------------结束*/
#paddingH {
	padding-top: 20px;
}
</style>

<script type="text/javascript">
	function allSelect() {
		if ($(":checkbox").attr("checked") != "checked") {
			$(":checkbox").attr("checked", "checked");
		} else {
			$(":checkbox").removeAttr("checked");
		}
	}
</script>
</head>
<body>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	<div class="top-header">
		<div class="topcolor">
			<div class="top-header-middle">
				<a href="index.html"><img src="image/logo-1.png" alt=""
					class="image-header" /></a>
			</div>
		</div>
	</div>
	<div class="header-bottom">
		<ul class="memenu skyblue">
			<li><a href="index.jsp">首页</a></li>
			<li><a href="feedAction!getAllByPage.action?num=1">课程反馈</a></li>
			<li><a href="courseAction!getAllByPage.action?num=1">课程管理</a></li>
			<li><a href="noticeAction!getAll.action?type=stu">查看公告</a></li>
			<li><a href="mycourse.jsp">我的信息</a></li>
			<li><a href="load.jsp">退出</a></li>
		</ul>
		<div class="clearfix"></div>
	</div>
	<!--pannel start-->
	<div class="course-manage">
		<div class="panel panel-info">
			<!--<div class="panel-heading">
		  		教学信息反馈
		   </div>
		   -->
			<div class="form-group " id="paddingH">
				<form role="form" action="feedAction!search.action" method="post">
					<div class="col-lg-3 col-md-3">
						<select class="form-control" name="method">
							<option value="week">按周次</option>
							<option value="teacherName">按教师</option>
							<option value="lesson">按课程</option>
						</select>
					</div>
					<div class="col-lg-3 col-md-3">
						<input type="text" class="form-control" placeholder="请输入要搜索的值"
							name="keyword" />
					</div>
					<div class="col-lg-2 col-md-2">
						<input type="submit" class="btn btn-default" value="检索" />
					</div>
				</form>
				<div class="col-lg-2 col-md-2 Toright">
					<a href="#" data-toggle="modal" data-target="#myaddModal">添加反馈</a>
				</div>
			</div>
			<div id="pannel-bodytopr">

				<!--添加模态框开始-->
				<div class="modal fade" id="myaddModal" tabindex="-1" role="dialog"
					aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal"
									aria-hidden="true">&times;</button>
								<h4 class="modal-title" id="myModalLabel">添加反馈</h4>
							</div>
							<div class="modal-body addFeedbackH">
								<div class="col-md-11 formadd">
									<form
										class="form-horizontal templatemo-container templatemo-contact-form-2 "
										role="form" action="feedAction!add.action" method="post">
										<div class="row">
											<div class="col-md-12">
												<h5>课程信息</h5>
												<div class="form-group">
													<div class="col-sm-12">
														<input type="text" class="form-control" name="classNum"
															placeholder="教学班编号">

													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<input type="text" class="form-control" name="lesson"
																placeholder="课程名称">
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<input type="text" class="form-control" name="teacher"
																placeholder="教师姓名">
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<input type="text" class="form-control" name="weekTime"
															placeholder="周次">
													</div>
												</div>
												<div class="form-group">
													<div class="col-sm-12">
														<div class="templatemo-input-icon-container">
															<input type="text" class="form-control" name="time"
																placeholder="时间">
														</div>
													</div>
												</div>
												<h5>问题反馈</h5>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<textarea class="form-control" name="schedule"
																placeholder="教师有无迟到、早退、拖堂、课间不休息等现象"></textarea>
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<textarea class="form-control" name="classSitutation"
																placeholder="教学效果情况"></textarea>
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<textarea class="form-control" name="classEfect"
																placeholder="学生听课状态"></textarea>
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<textarea class="form-control" name="afterClassSitu"
																placeholder="课后与学生的交流与指导、作业布置、作业批改、检查情况"></textarea>
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<textarea class="form-control" name="advice"
																placeholder="感觉教师上课出彩或需要改进的地方有哪些"></textarea>
														</div>
													</div>
												</div>
												<div class="form-group">
													<div class="col-md-12">
														<div class="templatemo-input-icon-container">
															<input type="text" class="form-control" name="memo"
																placeholder="联络员">
														</div>
													</div>
												</div>
											</div>
										</div>
								</div>
							</div>
							<div class="modal-footer">
								<div class="form-group">
									<div class="col-md-12">
										<input type="submit" value="提交"
											class="btn btn-success pull-right">
									</div>
								</div>
								</form>
							</div>
						</div>
						<!-- /.modal-content -->
					</div>
					<!-- /.modal -->
				</div>
				<!--添加模态框结束-->

			</div>
			<!--表格-->
			<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<!--<th><input type="checkbox" onclick="allSelect();"/>选择/全部</th></-->
							<th>周次</th>
							<th>时间</th>
							<th>课程</th>
							<th>教师</th>
							<th>反馈</th>
							<th>学院意见</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${fbs }" var="e">
							<tr>
								<c:set var="num" value="#"></c:set>
					         	<c:set var="number" value="${num }${e.fId }"></c:set>
								<td>${e.fWeekTime }</td>
								<td>${e.fClassOrd }</td>
								<td>${e.fLessonName }</td>
								<td>${e.fTeacherName }</td>
								<td>${e.fSchedule },${e.fClassSitutation },${e.fClassEfect },${e.fAfterClassSitu },${e.fAdvice }</td>
								<td>${e.fHandlingSuggestion }</td>
								<td><a role="menuitem" tabindex="-1" href="#"
								data-toggle="modal" data-target="${number }">查看</a></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>

			<!--表格结束-->
			
		</div>
		<c:forEach var="elem" items="${fbs }">
		<!-- 查看模态框（Modal） -->
		<div class="modal fade" id="${elem.fId  }" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">详细</h4>
					</div>
					<div class="modal-body">
						<h5 class="modal-title" id="myModalLabel">反馈</h5>
						 <div class="well well-sm"> ${elem.fSchedule },${elem.fClassSitutation },${elem.fClassEfect },${elem.fAfterClassSitu },${elem.fAdvice } </div>
					</div>
					<div class="modal-body">
						<h5 class="modal-title" id="myModalLabel">学院意见</h5>
						 <div class="well well-sm"> ${elem.fHandlingSuggestion } </div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>

					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal -->
		</div>
		<!--查看模态框结束-->
		</c:forEach>

	<ul class="pagination" style="margin-left: 50%;">
	   <c:if test="${pageNow-1>0 }">
			<li><a href="feedAction!getAllByPage.action?num=${pageNow-1 }">&laquo;</a></li>
		</c:if>
	   <c:forEach var="p"  step="1" begin="1" end="${pageCount }">
				<li><a href="feedAction!getAllByPage.action?num=${p }">${p }</a></li>
		</c:forEach>
	    <c:if test="${pageNow+1<=pageCount }">
			<li><a href="feedAction!getAllByPage.action?num=${pageNow+1 }">&raquo;</a></li>
		</c:if>
	</ul>
	
	</div>
	
	
	
	<!--pannel end-->
	<div class="bottom-below">
		<p class="friend-link">
			友情链接： <a href="http://software.henu.edu.cn/">河南大学软件学院</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://www.henu.edu.cn/">河南大学官网</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://jwc.henu.edu.cn/default.asp">河南大学教务处</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://xk1.henu.edu.cn/cas/login.action">河南大学选课系统</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://news.henu.edu.cn/">河南大学新闻网</a>&nbsp;&nbsp;&nbsp;&nbsp;
		</p>
		<p class="end-p">
			<a href="http://www.henu.edu.cn/">河南大学</a>软件学院蒲公英工作室&nbsp;&nbsp;Copyright
			&copy;&nbsp;&nbsp;2016www.henu.edu.cn&nbsp;&nbsp;&nbsp;&nbsp;地址：河南省开封市河南大学&nbsp;&nbsp;&nbsp;&nbsp;<img
				src="image/gif011.gif" class="img4"> 0371-22222222
		</p>
	</div>
</body>
</html>